// Spco.cpp: implementation of the Spco class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "Spco.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
namespace PDMS
{
	namespace SpecFrame
	{
		UE_PDMSCLASS_IMPLEMENT( Spco, UeDbObject, _T("SPCO") );

		Spco::Spco()
		{
			m_dAnswer = 0.0;
			m_dMaxAnswer = 0.0;
			m_strCatref = "";	
			m_lCatID = 0;				
			m_strDetref = "";		
			m_lDetID = 0;				
			m_strMatxt = "";		
			m_lMatxtID = 0;		
			m_strCmpref = "";		
			m_lCmpID = 0;			
			m_strBltref = "";	
			m_lBltID = 0;			
			m_strTanswer = "";
		}

		Spco::Spco(Spco& obj) : UeDbObject(obj)
		{
			m_dAnswer = obj.m_dAnswer;
			m_dMaxAnswer = obj.m_dMaxAnswer;
			m_strCatref = obj.m_strCatref;	
			m_lCatID = obj.m_lCatID;				
			m_strDetref = obj.m_strDetref;		
			m_lDetID = obj.m_lDetID;				
			m_strMatxt = obj.m_strMatxt;		
			m_lMatxtID = obj.m_lMatxtID;		
			m_strCmpref = obj.m_strCmpref;		
			m_lCmpID = obj.m_lCmpID;			
			m_strBltref = obj.m_strBltref;	
			m_lBltID = obj.m_lBltID;			
			m_strTanswer = obj.m_strTanswer;
		}

		Spco::~Spco()
		{

		}

		Persistable* Spco::Clone()
		{
			return new Spco(*this);
		} 
		
		BOOL Spco::IsLegalParent( PDMSFrame::UeDbObject* pParent )
		{
			ASSERT(pParent);
			if ( pParent->ClassID()==_T("SELE") || pParent->ClassID()==_T("SPEC") )
				return true;
			else
				return false;
		}
	}	
}



